/**
 * 从url参数中获取参数,转换成map格式
 */
function getParamFromURL(url) {
	let paramStrArr = url.split("&");
	let paramMap = {};
	for (let paramStr of paramStrArr) {
		let paramArr = paramStr.split("=");
		let paramName = paramArr[0];
		let paramValue = decodeURI(paramArr[1]);
		paramMap[paramName] = paramValue;
	}
	return paramMap;
}
/**
 * 文本长度格式化, 超过一定长度加上...
 */
function textLenFormat(text, maxSize) {
	return text.length > maxSize ? text.substring(0, maxSize) + "..." : text;
}